package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SysFaceLog;
import com.ruoyi.system.mapper.SysFaceLogMapper;
import com.ruoyi.system.service.ISysFaceLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 人脸识别Service业务层处理
 * 
 * @author yfkj
 * @date 2022-01-19
 */
@Service
public class SysFaceLogServiceImpl extends ServiceImpl<SysFaceLogMapper, SysFaceLog>  implements ISysFaceLogService
{
    @Autowired
    private SysFaceLogMapper sysFaceLogMapper;

    /**
     * 查询人脸识别
     * 
     * @param sysFaceId 人脸识别主键
     * @return 人脸识别
     */
    @Override
    public SysFaceLog selectSysFaceLogBySysFaceId(Long sysFaceId)
    {
        return sysFaceLogMapper.selectSysFaceLogBySysFaceId(sysFaceId);
    }

    /**
     * 查询人脸识别列表
     * 
     * @param sysFaceLog 人脸识别
     * @return 人脸识别
     */
    @Override
    public List<SysFaceLog> selectSysFaceLogList(SysFaceLog sysFaceLog)
    {
        return sysFaceLogMapper.selectSysFaceLogList(sysFaceLog);
    }

    /**
     * 新增人脸识别
     * 
     * @param sysFaceLog 人脸识别
     * @return 结果
     */
    @Override
    public int insertSysFaceLog(SysFaceLog sysFaceLog)
    {
        return sysFaceLogMapper.insertSysFaceLog(sysFaceLog);
    }

    /**
     * 修改人脸识别
     * 
     * @param sysFaceLog 人脸识别
     * @return 结果
     */
    @Override
    public int updateSysFaceLog(SysFaceLog sysFaceLog)
    {
        return sysFaceLogMapper.updateSysFaceLog(sysFaceLog);
    }

    /**
     * 批量删除人脸识别
     * 
     * @param sysFaceIds 需要删除的人脸识别主键
     * @return 结果
     */
    @Override
    public int deleteSysFaceLogBySysFaceIds(Long[] sysFaceIds)
    {
        return sysFaceLogMapper.deleteSysFaceLogBySysFaceIds(sysFaceIds);
    }

    /**
     * 删除人脸识别信息
     * 
     * @param sysFaceId 人脸识别主键
     * @return 结果
     */
    @Override
    public int deleteSysFaceLogBySysFaceId(Long sysFaceId)
    {
        return sysFaceLogMapper.deleteSysFaceLogBySysFaceId(sysFaceId);
    }
}
